package com.luoc.base.config.mybatis.service.impl;

import com.luoc.base.config.mybatis.entity.SysRole;
import com.luoc.base.config.mybatis.mapper.SysRoleMapper;
import com.luoc.base.config.mybatis.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author luoc
 * @since 2019-07-25
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public int addRoles(SysRole sysRole) {
        return sysRoleMapper.insert(sysRole);
    }
}
